package com.education.welco.service;

import com.education.welco.pojo.SysSensitiveWord;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Api("屏蔽词")
public interface ISysSensitiveWordService {
    //@PostMapping(value = "/addSensitiveWord")
    @ApiOperation("添加屏蔽词")
    int addSensitiveWord(@RequestBody SysSensitiveWord sysSensitiveWord);

    //@PostMapping(value = "/updateSensitiveWord")
    @ApiOperation("修改屏蔽词")
    int updateSensitiveWord(@RequestBody SysSensitiveWord sysSensitiveWord);

    //@PostMapping(value = "/delSensitiveWord")
    @ApiOperation("删除屏蔽词")
    int delSensitiveWord(@RequestBody SysSensitiveWord sysSensitiveWord);

    //@PostMapping(value = "/getSysSensitiveWordList")
    @ApiOperation("屏蔽词列表")
    PageInfo getSysSensitiveWordList(@RequestBody SysSensitiveWord sysSensitiveWord);

    //@PostMapping(value = "/getSysSensitiveWordAllList")
    @ApiOperation("全部屏蔽词列表")
    List<SysSensitiveWord> getSysSensitiveWordAllList();
}
